#include <REGX52.H>
#include "Delay.h"
#include "LCD1602.h"
#include "MatrixKey.h"


unsigned char KeyNum;
void main()
{
	LCD_Init();//初始化
	LCD_ShowString(1,1,"MatrixKey:");
	while(1)
	{
			KeyNum=MatrixKey();
		if(KeyNum)//如果没有判断 下一次检测到时候立马会刷新为0
			{
				LCD_ShowNum(2,1,KeyNum,2);
			
			}
	}

}